package com.gsm.dao;

import com.gsm.po.SysRole;

import java.util.List;

/**
 * 系统角色表(SysRole)表数据库访问层
 *
 * @author wjq
 * @since 2020-11-24 03:47:06
 */
public interface SysRoleDao {

    int insertSysRole(SysRole sysRole);

    int deleteSysRoleByRoleId(Long roleId);

    int updateSysRoleByRoleId(SysRole sysRole);

    SysRole selectSysRoleByRoleId(Long roleId);

    List<SysRole> selectSysRoleList(SysRole sysRole);

    List<SysRole> selectSysRoleListByUserId(Long userId);

    int selectMaxShowOrder();

    int updateSysRoleShowOrder(List<Long> list);
}